package com.blockmeta.bbs.immodule.greendao.repository;

import com.blockmeta.bbs.immodule.dao.CircleMember;
import com.blockmeta.bbs.immodule.dao.IMUserEntity;

import java.util.List;

public interface IUserRepo {

    void updateUser(IMUserEntity user);

    IMUserEntity getUser(long whoId, long userId, int type);

    List<IMUserEntity> getBookListFriends(long whoId);

    List<IMUserEntity> getGroupListFriends(long whoId);

    List<Long> getNoDisturbGroupIds(long uidInt);

    List<IMUserEntity> getGroupListMyGroupFirst(long uidInt);

    List<CircleMember> getCircleMembers(long chatGroupId, long whoId);

    void deleteCircleMember(Long circleMemberId);

    void addCircleMember(long uidInt, CircleMember circleMember);

    CircleMember getCircleMember(long uidInt, long userId, long chatGroupId);

    List<IMUserEntity> searchIMUserPaged(String word, int pageSize, int page, String orderField, String orderType, int type);

    void updateCircleMember(CircleMember circleMember);

    void addUser(IMUserEntity imUserEntity);

    void delete(IMUserEntity circle);

    IMUserEntity addAndUpdateUser(long uidInt, IMUserEntity user);

    IMUserEntity addAndUpdateUserInfo(int uidInt, IMUserEntity imUserEntity);
}
